<div class="row tab1-center">
    <div class="col-lg-8 col-md-8 col-sm-8 tab1-title-check01">
        <label>已标引主题词</label><!-- <input [(ngModel)]="internalMore" type="checkbox" class="form-control input_style"/><span>展开/关闭相关主题词</span> -->
    </div>
    <div class="col-lg-4 col-md-4 col-sm-4 tab1-title-check02">
        <a href="javascript:void(0);" data-target="#more" data-toggle="modal" (click)="internalModalTable.moreList();" class="bgTaskTxt">更多...</a>
    </div>
</div>



<div class="table-thead" *ngIf="tabVal">
    <table class="tableStyle table table-hover table-striped">
        <thead>
        <tr>
            <th class="w10 text-left max-w">序号</th>
            <th class="w20 text-left max-w">主题词</th>
            <th class="w15 text-left max-w">标引人</th>
            <th class="w20 text-left max-w">标引时间</th>
            <!--<th class="w20 text-left max-w">相关主题词</th>-->
            <th class="w15 text-left max-w">操作</th>
        </tr>
        </thead>
    </table>
</div>
<ng-container *ngIf="currentType == 2">
<div class="table-tbody" style="max-height: 420px;overflow-y: scroll;">
    <table class="tableStyle table table-hover table-striped">
        <tbody>
        <ng-container *ngFor="let val of tabVal;let i = index">
            <tr>
                <ng-container *ngIf="i <= 7">
                    <td class="w10 text-left max-w">{{ i + 1 }}</td>
                    <td class="w20 text-left max-w">{{ val.relThemeWordsName }}</td>
                    <td class="w15 text-left max-w">{{ val.createBy }}</td>
                    <td class="w20 text-left max-w">{{ val.createTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
                    <!--<td class="w20 text-left max-w"><span data-target="#viewRelTheme" data-toggle="modal" (click)="_info(val);" class="tableOperationText">相关主题词</span></td>-->
                    <td class="w15 text-left max-w">
                        <span *ngIf="val.checkStatus == 200" class="TC-state TC-right-foot-green01">已审核</span>
                        <span *ngIf="val.checkStatus == 0" class="TC-state TC-right-foot-orange">未审核</span>
                        <span *ngIf="val.checkStatus == -1" class="TC-state TC-right-foot-orange">不通过</span>
                        <span title="删除" *ngIf="internalParam.completeStatus != '1'" (click)="_deleteRel([val.relationId])" class="tableOperationText"><img class="PI-table-img" src="assets/indexing/del01.png"/></span>
                    </td>
                </ng-container>
            </tr>
        </ng-container>
        </tbody>
    </table>
</div>
</ng-container>

<ng-container *ngIf="currentType != 2">
    <div class="table-tbody" style="max-height: 420px;overflow-y: scroll;">
        <table class="tableStyle table table-hover table-striped">
            <tbody>
            <ng-container *ngFor="let val of tabVal;let i = index">
                <tr>
                    <ng-container *ngIf="i <= 7">
                        <td class="w10 text-left max-w">{{ i + 1 }}</td>
                        <td class="w20 text-left max-w">{{ val.themeWordsName }}</td>
                        <td class="w15 text-left max-w">{{ val.createBy }}</td>
                        <td class="w20 text-left max-w">{{ val.createTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
                        <!--<td class="w20 text-left max-w"><span data-target="#viewRelTheme" data-toggle="modal" (click)="_info(val);" class="tableOperationText">相关主题词</span></td>-->
                        <td class="w15 text-left max-w">
                            <span *ngIf="val.checkStatus == 200" class="TC-state TC-right-foot-green01">已审核</span>
                            <span *ngIf="val.checkStatus == 0" class="TC-state TC-right-foot-orange">未审核</span>
                            <span *ngIf="val.checkStatus == -1" class="TC-state TC-right-foot-orange">不通过</span>
                            <span title="删除" *ngIf="internalParam.completeStatus != '1' && val.checkStatus != 200" (click)="_delete([val.id],val.themeWordsId)" class="tableOperationText"><img class="PI-table-img" src="assets/indexing/del01.png"/></span>
                        </td>
                    </ng-container>
                </tr>
                <ng-container *ngIf="internalMore == true">
                    <ng-container *ngFor="let relVal of val.relationThemeWordsList">
                        <tr>
                            <td colspan="6">{{ relVal.relThemeWordsName }}</td>
                        </tr>
                    </ng-container>
                </ng-container>
            </ng-container>
            </tbody>
        </table>
    </div>
</ng-container>


<!--<div class="row tab1-center tab1-table-box">-->
    <!--<div class="col-lg-12 col-md-12 col-sm-12 tab1-table" style="max-height: 400px;overflow-y: scroll;">-->
        <!--<table class="table table-striped table-bordered table-hover tableStyle">-->
            <!--<thead>-->
            <!--<tr>-->
                <!--<th>序号</th>-->
                <!--<th>主题词</th>-->
                <!--<th>标引人</th>-->
                <!--<th>标引时间</th>-->
                <!--<th>相关主题词 </th>-->
                <!--<th>操作</th>-->
            <!--</tr>-->
            <!--</thead>-->
            <!--<tbody>-->

            <!--<ng-container *ngFor="let val of tabVal;let i = index">-->
                <!--<tr>-->
                    <!--<ng-container *ngIf="i <= 7">-->
                    <!--<td>{{ i + 1 }}</td>-->
                    <!--<td>{{ val.themeWordsName }}</td>-->
                    <!--<td>{{ val.createBy }}</td>-->
                    <!--<td>{{ val.createTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>-->
                    <!--<td><span data-target="#viewRelTheme" data-toggle="modal" (click)="_info(val);" class="tableOperationText">相关主题词</span></td>-->
                    <!--<td>-->
                        <!--<span *ngIf="val.checkStatus == 1" class="TC-state TC-right-foot-green01">已审核</span>-->
                        <!--<span *ngIf="val.checkStatus == 0" class="TC-state TC-right-foot-orange">未审核</span>-->
                        <!--<span *ngIf="val.checkStatus == -1" class="TC-state TC-right-foot-orange">不通过</span>-->
                        <!--<span title="删除" (click)="_delete([val.id])" class="tableOperationText"><img class="PI-table-img" src="assets/indexing/del01.png"/></span>-->
                    <!--</td>-->
                    <!--</ng-container>-->
                <!--</tr>-->
                <!--<ng-container *ngIf="internalMore == true">-->
                        <!--<ng-container *ngFor="let relVal of val.relationThemeWordsList">-->
                            <!--<tr>-->
                                <!--<td colspan="6">{{ relVal.relThemeWordsName }}</td>-->
                            <!--</tr>-->
                        <!--</ng-container>-->
                <!--</ng-container>-->
            <!--</ng-container>-->
            <!--</tbody>-->
        <!--</table>-->
    <!--</div>-->
<!--</div>-->

<!--更多窗口 开始-->
<app-internal-indexed-modal-table [paramData]="paramData" [internalParam]="internalParam" #internalModalTable></app-internal-indexed-modal-table>
<!--更多窗口 结束-->

<!-- 删除 BEGIN -->
<app-internal-indexed-delete (deleteOutput)="ParentDelete($event)"></app-internal-indexed-delete>
<!-- 删除 END -->

